#!/bin/bash

CMD=""

case "$1" in
  metastore)
  #CMD="hive --service metastore"
  hive --service metastore
  ;;
  hiveserver2)
  CMD="hive --service hiveserver2"
  hive --service hiveserver2
  ;;
  bash)
  CMD="bash"
  /bin/bash
  ;;
esac

#exec /usr/bin/tini -s -- "${CMD}"
